package com.znz.analysis.constant.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author 作者 :TP
 * @version 创建时间：2017年6月23日 下午5:14:39
 *
 */
@Configuration
@PropertySource("classpath:spark.properties")
public class SparkProperties {
	private String app_name;
	private String master_url;
	private String executor_memory;
	private String lib_dir;

	public String getApp_name() {
		return app_name;
	}

	@Value("${spark.app.name}")
	public void setApp_name(String app_name) {
		this.app_name = app_name;
	}

	public String getMaster_url() {
		return master_url;
	}

	@Value("${spark.master.url}")
	public void setMaster_url(String master_url) {
		this.master_url = master_url;
	}

	public String getExecutor_memory() {
		return executor_memory;
	}

	@Value("${spark.executor.memory}")
	public void setExecutor_memory(String executor_memory) {
		this.executor_memory = executor_memory;
	}

	public String getLib_dir() {
		return lib_dir;
	}

	@Value("${spark.lib.dir}")
	public void setLib_dir(String lib_dir) {
		this.lib_dir = lib_dir;
	}

}
